import axios from "axios";
import {baseURL,timeout} from "@/service/request/config"
const newaxios = axios.create({
    baseURL,
	timeout
})

newaxios.interceptors.request.use(
    config => {
        return config
    },
    error => {
        return  Promise.error(error);
    }
)

newaxios.interceptors.response.use(
    response => {
        return response.data
    },
    error => {
        return error
    }
)

export default newaxios

